import request from '@/utils/request'
//获取sku列表
export const reqSkuList = (page,limit)=>{
 return request({
   url:`/admin/product/list/${page}/${limit}`,
   method:'GET'
 })
}
//上架
export const reqOnSale = (skuId)=>{
 return request({
   url:`/admin/product/onSale/${skuId}`,
   method:"GET"
 })
}
//下架
export const reqCancelSale = (skuId)=>{
 return request({
   url:`/admin/product/cancelSale/${skuId}`,
   method:"GET"
 })
}
//查看详情
export const reqDetail = (skuId)=>{
 return request({
   url:`/admin/product/getSkuById/${skuId}`,
   method:"GET"
 })
}
//删除sku
export const reqDeleteSku = (skuId)=>{
 return request({
   url:`/admin/product/deleteSku/${skuId}`,
   method:'DELETE'
 })
}
